package org.seckill.dto;

public class SeckillResult<T> {
    //请求是否成功
    private boolean success;
    //返回的数据
    private T date;
    //返回的错误信息
    private String error;
    //成功情况
    public SeckillResult(boolean success, T date) {
        super();
        this.success = success;
        this.date = date;
    }
    public SeckillResult(boolean success, String error) {
        super();
        this.success = success;
        this.error = error;
    }
    public boolean isSuccess() {
        return success;
    }
    public void setSuccess(boolean success) {
        this.success = success;
    }
    public T getDate() {
        return date;
    }
    public void setDate(T date) {
        this.date = date;
    }
    public String getError() {
        return error;
    }
    public void setError(String error) {
        this.error = error;
    }
}
